unit allComments;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TformAllComments = class(TForm)
    memoAllComments: TMemo;
  private
    { Private declarations }
  public
    { Public declarations }
    procedure showAllComments(mNbOfLines: Integer; allComments: array of TStringList);
  end;

var
  formAllComments: TformAllComments;

implementation

{$R *.dfm}

procedure TformAllComments.showAllComments(mNbOfLines: Integer; allComments: array of TStringList);
var
  i: Integer;
begin
  memoAllComments.Clear;
  for i:=0 to mNbOfLines-1 do
  begin
    if allComments[i]<> nil then
    begin
      memoAllComments.Lines.AddStrings(allComments[i]);
    end;
  end;
  formAllComments.ShowModal;
end;

end.
